package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FoundationTransferRecordsMapper;
import com.ruoyi.system.domain.FoundationTransferRecords;
import com.ruoyi.system.service.IFoundationTransferRecordsService;

/**
 * 医保基金-转账记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-13
 */
@Service
public class FoundationTransferRecordsServiceImpl implements IFoundationTransferRecordsService 
{
    @Autowired
    private FoundationTransferRecordsMapper foundationTransferRecordsMapper;

    /**
     * 查询医保基金-转账记录
     * 
     * @param id 医保基金-转账记录主键
     * @return 医保基金-转账记录
     */
    @Override
    public FoundationTransferRecords selectFoundationTransferRecordsById(Long id)
    {
        return foundationTransferRecordsMapper.selectFoundationTransferRecordsById(id);
    }

    /**
     * 查询医保基金-转账记录列表
     * 
     * @param foundationTransferRecords 医保基金-转账记录
     * @return 医保基金-转账记录
     */
    @Override
    public List<FoundationTransferRecords> selectFoundationTransferRecordsList(FoundationTransferRecords foundationTransferRecords)
    {
        return foundationTransferRecordsMapper.selectFoundationTransferRecordsList(foundationTransferRecords);
    }

    /**
     * 新增医保基金-转账记录
     * 
     * @param foundationTransferRecords 医保基金-转账记录
     * @return 结果
     */
    @Override
    public int insertFoundationTransferRecords(FoundationTransferRecords foundationTransferRecords)
    {
        return foundationTransferRecordsMapper.insertFoundationTransferRecords(foundationTransferRecords);
    }

    /**
     * 修改医保基金-转账记录
     * 
     * @param foundationTransferRecords 医保基金-转账记录
     * @return 结果
     */
    @Override
    public int updateFoundationTransferRecords(FoundationTransferRecords foundationTransferRecords)
    {
        return foundationTransferRecordsMapper.updateFoundationTransferRecords(foundationTransferRecords);
    }

    /**
     * 批量删除医保基金-转账记录
     * 
     * @param ids 需要删除的医保基金-转账记录主键
     * @return 结果
     */
    @Override
    public int deleteFoundationTransferRecordsByIds(Long[] ids)
    {
        return foundationTransferRecordsMapper.deleteFoundationTransferRecordsByIds(ids);
    }

    /**
     * 删除医保基金-转账记录信息
     * 
     * @param id 医保基金-转账记录主键
     * @return 结果
     */
    @Override
    public int deleteFoundationTransferRecordsById(Long id)
    {
        return foundationTransferRecordsMapper.deleteFoundationTransferRecordsById(id);
    }
}
